// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App'
import router from './router/index'
import axios from 'axios'
import cookie from 'js-cookie'
import store from './store'


//公用css
import './assets/fonts/iconfont/iconfont.css';
import './assets/fonts/font-awesome-4.7.0/css/font-awesome.min.css';
import './assets/css/index.css';
import './assets/css/component.css';
import './style/common.less'
import './style/reset.less'
import './style/esionet.less'
//公用js
import utils from './libs/util'
//组件
import navMenu from './components/module/nav-menu'
import demoTable from './components/module/demo-table'
import esTree from './components/public/es-tree'
import esSelect from './components/public/es-select'
import esCheckbox from './components/public/es-checkbox'
import esCascader from './components/public/es-cascader'
import esUploadImg from './components/public/es-upload-img'
import esUploadFile from './components/public/es-upload-file'
import esPreviewImg from './components/public/es-preview-img'
import esValueFormat from './components/public/es-value-format'
import esTime from './components/public/es-time'
import esFileSelector from './components/public/es-file-selector'
import esRichText from './components/public/es-rich-text'

Vue.use(cookie);
Vue.use(ElementUI);
Vue.component('nav-menus', navMenu);
Vue.component('demo-table', demoTable);
Vue.component('es-tree', esTree);
Vue.component('es-select', esSelect);
Vue.component('es-checkbox', esCheckbox);
Vue.component('es-cascader',esCascader);
Vue.component('es-upload-img', esUploadImg);
Vue.component('es-upload-file', esUploadFile);
Vue.component('es-preview-img', esPreviewImg);
Vue.component('es-value-format', esValueFormat);
Vue.component('es-time', esTime);
Vue.component('es-file-selector', esFileSelector);
Vue.component('es-rich-text', esRichText);


Vue.prototype.$http = axios;
Vue.prototype.$t = utils;

require('@/mock');
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
